第 11 步:让我们看看每次运行程序时变量label_2存储的内容。

  • 在“图形”选项卡中,转到并拖入Say
  • .say()中的字符串替换为label_2

精灵现在说出骰子这个词,后面跟着一个数字!

多次运行程序以查看精灵每次所说的差异。

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)